package com.woniuxy.mapper;

import com.woniuxy.pojo.Permission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PermissionMapper {
    public List<Permission> selectPermissionsByRid(int rid);
    //通过用户id获取改用户所拥有的菜单
    public List<Permission> selectMenusByUid(@Param("uid") int uid);
    //查询所有的权限集合
    public List<Permission> selectAllPermissions();
}
